package calendar.view.panels;

import com.google.api.services.calendar.model.CalendarListEntry;
import swing.GridPanel;

public class CalendarListEntryGridPanel extends GridPanel {
    public CalendarListEntryGridPanel(CalendarListEntry entry) {
        addLabel("ID", entry.getId());
        addLabel("Summary", entry.getSummary());

        if (entry.getDescription() != null)
            addLabel("Description", entry.getDescription());
    }
}
